package com.haiyou.data.sdk.account;

import com.haiyou.common.entity.Entity;
import com.haiyou.common.jdbc.DbType;
import com.haiyou.data.common.cache.redis.redisson.annotation.RDatabase;
import com.haiyou.data.common.persister.mysql.annotation.Comment;
import com.haiyou.data.common.persister.mysql.annotation.Database;
import com.haiyou.data.common.persister.mysql.annotation.Id;
import com.haiyou.data.common.persister.mysql.annotation.Length;
import com.haiyou.data.common.persister.mysql.annotation.Table;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;



@NoArgsConstructor
@AllArgsConstructor
@ToString
@Getter
@Setter
@Database(alias = DbType.SDK)
@RDatabase(alias = DbType.SDK)
@Table(name = "t_sdk_account")
public class SdkAccountTable implements Entity<String>{

	private static final long serialVersionUID = 3421121884888108855L;

	/**
	 * 数据 id<br>
	 * sdk  uid+渠道号
	 * 其他 sdk sdk uid+渠道号
	 */
	@Id
	@Comment("数据 id")
	private String id;
	
	
	/**
	 * 账号
	 */
	@Length(value = Length.Len.TINY)
	@Comment("账号")
	private String username;
	

	/**
	 * 渠道
	 */
	@Comment("渠道")
	private String channel;
	
	/**
	 * sdk内 uid
	 */
	@Length(value = Length.Len.TINY)
	@Comment("sdk内 uid")
	private String uid;
	
	/**
	 * 密码
	 */
	@Comment("密码")
	private String password;
	
	
	/**
	 * 手机号
	 */
	@Comment("手机号")
	private String phone;
	
	/**
	 * 邮箱
	 */
	@Comment("邮箱")
	private String email;
	
	/**
	 * 创建时间
	 */
	@Comment("创建时间")
	private long createTime;
	
	@Comment("修改密码时间")
	private long updatePwdTime;
	
}	
